package com.hspjava.bignumber;

import java.math.BigInteger;

public class BigInteger_ {
    public static void main(String[] args) {
        //long l = 23423423432432423432423423423432432423;



        BigInteger bigInteger = new BigInteger("23423423432432423432423423423432432423");
        System.out.println(bigInteger);
        //1.大数的运算有对应的方法

        BigInteger bigInteger1 = new BigInteger("1000");




        BigInteger add = bigInteger.add(bigInteger1);
        BigInteger sub = bigInteger1.subtract(bigInteger);


        System.out.println(add);
        System.out.println(sub);

    }
}
